//package com.aaa.pay.rabbitmq;
//
//import org.springframework.amqp.core.*;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author JYH
// * @version 1.0
// * @date 2023/3/8 9:30
// */
//@Configuration
//public class Config {
//    private String accountOrder_queue="accountOrder_queue";
//    private String accountOrder_exchange="accountOrder_exchange";
//    private String accountOrder_deadExchange="accountOrder_deadExchange";
//
//    @Bean
//    public Queue queue01(){
//        Queue queue = QueueBuilder.durable(accountOrder_queue).build();
//        return queue;
//    }
//
//
//    @Bean
//    public Exchange exchange(){
//        Exchange exchange = ExchangeBuilder.topicExchange(accountOrder_deadExchange).build();
//        return exchange;
//    }
//
//
//
//    @Bean
//    public Binding binding(Exchange accountOrder_deadExchange,Queue accountOrder_queue){
//        Binding noargs = BindingBuilder.bind(accountOrder_queue).to(accountOrder_deadExchange).with("*.orange.*").noargs();
//        return noargs;
//    }
//
//
//
//
//}
